<template>
  <div id="app">
    <keep-alive>
      <router-view class="view-router"  v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view class="view-router" v-if="!$route.meta.keepAlive"></router-view>
    <router-view name="tabbar"></router-view>
  </div>
</template>

<style scoped>
  #app{
    max-width: 700px;
    /*position:absolute;*/
    top:0;
    bottom:0;
    margin:0 auto;
  }
</style>
